<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <?php include_http_metas() ?>
        <?php include_metas() ?>
        <?php include_title() ?>
        <link rel="shortcut icon" href="/favicon.ico" />
        <?php include_stylesheets() ?>
        <?php include_javascripts() ?>
    </head>
    <body>
        <div class="header_resize">
            <div class="header">
                <div class="logo"><a href=<?php echo url_for('home/index') ?> ><?php echo image_tag('logo.gif', 'alt=logo size=338x70') ?></a></div>
                <div class="menu">
                    <ul>
                        <li><a class="active" href=<?php echo url_for('home/index') ?> ><span>Home</span></a></li>
                        <?php if ($sf_user->isAuthenticated()): ?>
                            <li><?php echo link_to('<span> Panel </span>', 'panel/index') ?> </li>
                            <li><?php echo link_to('<span> Configuración </span>', 'usuario/index') ?> </li>
                            <li><?php echo link_to('<span> Logout </span>', 'sesion/logout') ?> </li>
                        <?php else : ?>
                            <li><?php echo link_to('<span> Login </span>', 'sesion/login') ?> </li>
                            <li><?php echo link_to('<span> Registrarse </span>', 'usuario/new') ?> </li>
                        <?php endif ?>
                    </ul>
                </div>
                <div>
                    <?php if ($sf_user->isAuthenticated()): ?>
                        <?php echo $sf_user->getAttribute('correo') ?>
                    <?php endif ?>
                </div>
                <div class="clr"></div>
                <div class="clr"></div>
            </div>
        </div>

        <?php echo $sf_content ?>

        <div class="footer">
            <div class="footer_resize">
                <p class="leftt">© Copyright www.dentist.com . All Rights Reserved<br/>
                    <p class="right">Poewred by <a href="http://www.byg.com.uy">BYG</a></p>
                    <div class="clr"></div>
            </div>
            <div class="clr"></div>
        </div>
    </body>
</html>
